Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update usage-next-13.mdx: Clarify that the API route need to stay in the pages folder #848

Merged
merged 2 commits into from
Oct 25, 2023

Conversation

tordans
Copy link
Contributor

@tordans tordans commented Oct 13, 2023

The current migration guide https://nextjs.org/docs/app/building-your-application/upgrading/app-router-migration#migrating-from-pages-to-app recommends

pages/api/* currently remain inside the pages directory.

I tried moving the existing files to the app directory but that fails. Likely because the new app/api directory works differently. However, in general there are app/api routes documented in https://nextjs.org/docs/app/building-your-application/routing/route-handlers so maybe with updated files we can migrate…

@vercel
Copy link

vercel bot commented Oct 13, 2023

@tordans is attempting to deploy a commit to the Blitz Team on Vercel.

A member of the Team first needs to authorize it.

siddhsuresh
siddhsuresh previously approved these changes Oct 25, 2023
@siddhsuresh siddhsuresh merged commit c4a9c35 into blitz-js:main Oct 25, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants